package com.pwt.model.crustallus;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author dw
 * @version 1.0.0
 * @date 2021/10/8
 */
@Data
@Tag(name = "订单分组对象")
public class OrderModel {

    @Schema(description = "订单编号")
    private String k0053;

    @Schema(description = "顺序零件编号")
    private Integer k1000;

    @Schema(description = "零件编号")
    private String k1001;

    @Schema(description = "零件名称")
    private String k1002;

    @Schema(description = "工序编号")
    private Integer k0008;

    @Schema(description = "机器编号")
    private Integer k0010;

    @Schema(description = "最大值")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date maxTime;

    @Schema(description = "最小值")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date minTime;

    @Schema(description = "数量值")
    private Integer count;

    @Schema(description = "合格数量")
    private Integer qualified = 0;

    @Schema(description = "合格率")
    private BigDecimal qualifiedRate;

    @Schema(description = "有合格的被测参数")
    private Integer hasQualified = 0;

    @Schema(description = "有合格的被测参数比率")
    private BigDecimal hasQualifiedRate;

    @Schema(description = "不合格数量")
    private Integer disqualification = 0 ;

    @Schema(description = "不合格率")
    private BigDecimal disqualificationRate;


}
